package com.young.springdemo.service.command;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

//@Component
public class testCommandD {



//    @PostConstruct
    public void testCom() throws  Exception  {
        Class<?> aClass = Class.forName("com.young.springdemo.service.command.HelpCommand");
        Command command = (Command)aClass.newInstance();
        FunctionButton functionButton = new FunctionButton();
        functionButton.setCommand(command);
        functionButton.click();
    }

}
